EG Information

Main Index
EG Manual
Disclaimer
Legal Information
Hall of Fame
Hall of Shame
Member Rankings
Members List
Meet the Staff

Training Missions

Read Me First New
Basic Skills
Realistic Scenarios
Cryptography
Software Cracking
Linux ELF Binary Cracking
Logical Thinking
Programming
Captcha Cracking New
Patching
Steganography
Deface This Wall
/dev/null
/dev/urandom
/dev/extra New

Knowledge Bank

Discussion Forums
Enigma Chat New
RSS Feeds RSS
Articles / Tutorials
Videos
Online EG MP3 Player Radio
Enigma Zine
Downloads
Tools New

Code Resources

Submit Code
Ajax
ASM
Bash
C
CPP
Csharp
Delphi
Haskell
Java
Javascript
Jython
Lisp
mIRC
MySQL
Perl
PHP
Python
QBASIC
VisualBasic

Hakipedia: An open collaborative for all your information security needs.

The Urinal

Click Here To Vote For EG!

Has Enigma Group Helped You? Then Help Us By Advertising For Us. Place One Of The Following Images On Your Site.

enigma group

enigma group

enigma group

enigma group

Enigma Group's Code Bank


Windows API in VB Part[2]

By: Link-  -  Date Submitted: 2008-08-16 14:42:21

  1. Private Sub Form_Load()
  2. Text1.Text = GetTmpPath
  3. End Sub
  4.  
  5. -----------------------------------------------------------------------
  6. Create a new module and paste the following code in it
  7. -----------------------------------------------------------------------
  8.  
  9. Declare Function GetTempPath Lib "kernel32" Alias _
  10. "GetTempPathA" (ByVal nBufferLength As Long, ByVal _
  11. lpBuffer As String) As Long
  12.  
  13. Public Const MAX_PATH = 260
  14.  
  15. Public Function GetTmpPath()
  16. Dim strFolder As String
  17. Dim lngResult As Long
  18. strFolder = String(MAX_PATH, 0)
  19. lngResult = GetTempPath(MAX_PATH, strFolder)
  20. If lngResult <> 0 Then
  21. GetTmpPath = Left(strFolder, InStr(strFolder, _
  22. Chr(0)) - 1)
  23. Else
  24. GetTmpPath = ""
  25. End If
  26. End Function
Return to visualbasic category list

Who's Online

418 Guests, 95 Users
vapour, Ausome1, _InSane_, hemiptera, LordHelmet, BnE, N4g4c3N, chrbarrol, ThaKeeper, dark_void, th3punish3r, locust, c0re, iwanlearn, Anderl, ghostraider100, Ghostrider, eliking510, harsha2hack, NotMyOwn, Calumoo, MajorDeath, Rex_Mundi, sabre725, bhoang93, r!v3rTw!ggz, jarlskov, invas10n, snozzberries, Nusquam-Redono-Sapientia, data, zeth, psychomarine, yuka, DnA-Ender, 454447415244, Ultraminor, T-Metal, antibubbles, raven001, aVoid, Psiber_Syn, sirEgghead, Protagoras, niggletandco, Vahakn, Chaplin, BinaryShinigami, zoegeorgica, hacker807, Red_beard, eviscerator, TheFender, InjectioN, totalnoob, Posix, obrigadoo, cul8er, Mcasdf, teehee, Ops, Protest123, Blizer, gabel, Marian, Edika, zofy, Nasrudin, dochaley, TheRetech, j0sh, kcaz, klesco, cool.nik, Sand, SaMTHG, fawk3s, rajabaja, avalor, hettoo, mat_2010, barbseven, daandeveloper33, tommy1092, Likantrop7, sajan619, Knuppel, Distorted, Bloodmaster25, blink_212, buffer, apablo, d0cketts, Y34RZ3R0, freakazoid